StartStopwatch

Starts or restarts the stopwatch to measure elapsed time.

To stop the stopwatch, use the StopStopwatch statement. To reset the stopwatch to zero, use the ResetStopwatch statement.

Syntax

StartStopwatch()

Example

StartStopwatch()

Window("Report a Bug").EditBox("editboxUsername").SetText("Guest")

Window("Report a Bug").EditBox("editboxPassword").SetText("SoloBug")

Window("Report a Bug").Button("buttonLogin").Click()

StopStopwatch()

elapsedTime = GetStopwatchElapsedTime()

PrintLn("Login time: " + elapsedTime)

ResetStopwatch()